API: Check return value from $gitInfo->getHeadCommitDate()
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 5 May 2014 14:23:30 +0000 (10:23 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 5 May 2014 14:23:30 +0000 (10:23 -0400)
commit986d3ef2c13aeaf8d172e89c30c2c2f93d9f1b55
tree60b6347811364193d73de5fa62a36c39b49923ae
parent9b15c15c32afe36548eb11ff04c7b4fbe6d3675a
API: Check return value from $gitInfo->getHeadCommitDate()

action=query&meta=siteinfo&siprop=extensions calls
$gitInfo->getHeadCommitDate() to attempt to find the commit date, but
does not check whether that function returned false before using the
value. This resulted in displaying the current date for "vcs-date" when
the function failed.

Bug: 64821
Change-Id: Ic39a74abe5160b3b7fbfb7c15323328d6b317560
includes/api/ApiQuerySiteinfo.php